package com.echo.neocommunity;

import org.junit.jupiter.api.Test;

public class Solution {

    @Test
    public void test01() throws CloneNotSupportedException {
        final Student student=new Student();
        student.setId(1);
        System.out.println(student.getId());
        System.out.println(student.getUsername());
        System.out.println(student.getUser());
        test02(student);
        System.out.println(student.getId());
        System.out.println(student.getUsername());
        System.out.println(student.getUser());
    }

    public void test02(final Student student) throws CloneNotSupportedException {
        Student clone = student.clone();
        clone.setUsername("hello echo!");
        clone.setId(123);
//        student.getUser().setUsername("123");
    }
}
